# -*- coding: utf-8 -*-
from wtforms import Form, FileField, StringField
from wtforms.validators import InputRequired
from flask_wtf.file import FileRequired, FileAllowed


class imageUploadForm(Form):
    file = FileField(validators=[FileRequired(message="没有上传文件！"), FileAllowed(['jpg', 'png', 'gif'])])
